
TARGETS = $(shell find . -maxdepth 1 -type d -a ! -name .svn -a ! -name .)
CC=gcc
LD=gcc

.PHONY: clean all $(TARGETS)

all: $(TARGETS)

clean: $(foreach t,$(TARGETS),$(t).clean)

$(TARGETS):
	+cd $@; make CC=$(CC) LD=$(LD)

%.clean:
	+cd $(basename $@); make clean
